﻿using System;
using System.Collections.Generic;

namespace Tisbi.LawFirm.BL.Services
{
    public interface IServiceAgentBase<T>
    {
        // Retrieve Employees
        void GetItem(Action<List<T>, Exception> completed);

        // Insert T
        void AddItem(T item, Action<Exception> completed);

        // Remove T
        void RemoveItem(T item);

        // Save changes
        void Edit(T item, Action<Exception> completed);

        // Reject changes
        void RejectChanges();
    }
}